package com.bhs.sansong.ui.wallet;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.bhs.sansong.R;
import com.bhs.sansong.base.BaseActivity;

/**
 * 添加成功页面
 */
public class SuccessfullyAddedActivity extends BaseActivity {

    private TextView mTvTitle;
    private Button mBtnBack;
    private int type;

    @Override
    public int initLayout() {
        return R.layout.activity_successfully_added;
    }

    @Override
    public void initView() {
        type=getIntent().getIntExtra("type",0);
        mTvTitle = findViewById(R.id.tv_title);
        mBtnBack = findViewById(R.id.btn_back);

        mBtnBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });

    }

    @Override
    public void initData() {
        mTvTitle.setText("提交审核成功");
        if(type==1){
            mTvTitle.setText("申请成功");
            mBtnBack.setText("返回押金");
        }
    }
}